package com.fresh.liangyi.service;



import com.fresh.liangyi.model.domain.Address;
import com.fresh.liangyi.model.domain.Authority;
import com.fresh.liangyi.model.domain.User;

import java.util.List;

public interface UserService {
    public User selectUserWithId(Integer id);

    public User getByUserName(String username);

    public List<Authority> getAuthority(String username);

    public List<Address> getAddressByUserId(Integer id);
    public Address getAddressById(Integer id);
    public Integer addUser(User user);
    public Integer addAuthorityByUser(Integer userId,Integer authorityId);
}
